
testPrinter(
'default xml namespace = "asdf"',
'default xml namespace = "asdf";',
'default xml namespace="asdf"'
);

testPrinter(
'default xml namespace = getNs()',
'default xml namespace = getNs();',
'default xml namespace=getNs()'
);

testPrinter(
'<xml></xml>',
'<xml></xml>;',
'<xml></xml>'
);

testPrinter(
'<xml />',
'<xml />;',
'<xml/>'
);

testPrinter(
'<a><b /></a>',
'<a><b /></a>;',
'<a><b/></a>'
);

testPrinter(
'<location a="b" />',
'<location a="b" />;',
'<location a="b"/>'
);

testPrinter(
'<location a="b" c = "d"/>',
'<location a="b" c="d" />;',
'<location a="b" c="d"/>'
);

testPrinter(
'<a> asd <x /></a>',
'<a> asd <x /></a>;',
'<a> asd <x/></a>'
);

testPrinter(
'<><a /><b /></>',
'<><a /><b /></>;',
'<><a/><b/></>'
);

testPrinter(
'<><a /> <b /></>',
'<><a /> <b /></>;',
'<><a/> <b/></>'
);

testPrinter(
'a(<![CDATA[asdf\ng]]>);',
'a(<![CDATA[asdf\ng]]>);',
'a(<![CDATA[asdf\ng]]>)'
);

testPrinter(
'a(customer.(phone[0].@type == preferred))',
'a(customer.(phone[0].@type == preferred));',
'a(customer.(phone[0].@type==preferred))'
);

testPrinter(
'element = <html/>; a(element.*);',

'element = <html />;\n\
a(element.*);',

'element=<html/>;a(element.*)'
);

testPrinter(
'element = <html/>; a(element.@*);',

'element = <html />;\n\
a(element.@*);',

'element=<html/>;a(element.@*)'
);

testPrinter(
'element = <html/>; a(element..*);',

'element = <html />;\n\
a(element..*);',

'element=<html/>;a(element..*)'
);

